package cn.com.cifi.mars.constant;

/**
* @Description:  层级枚举
* @Author: wy
* @Date:
*/

public enum OrgTypeEunm {

	ORG_WANDA_GROUP("org_wanda_group","全集团"),
	ORG_BUSINESS_DIVISION("org_business_division","事业部"),
	ORG_CITY_COMPANY("org_city_company","城市公司"),
    ORG_PRODUCTF("org_project","项目"),
    ORG_STAGE("org_stage","分期"),
    ORG_GROUP("org_group","组团"),
    ORG_BATCH("org_batch","供应批次"),
    ORG_PRO_TYPE("org_pro_type","业态"),
    ORG_PRODUCT("org_product","产品构成"),
    ORG_BUILD("org_build","楼栋"),
    ORG_HOUSE_PACKAGE("org_house_package","房源包"),
    ORG_SALE_PACKAGE("org_sale_parking","已售车位"),
    ORG_NOT_SALE_PACKAGE("org_not_sale_parking","已定价未售车位"),
    ORG_SALING_PARKING("org_salingparking","可售车位"),
    ORG_NOT_SALING_PARKING("org_forsaleparking","未推售车位"),

    ;

    private String key;
    private String value;

    OrgTypeEunm(String key,String value) {
        this.key = key;
        this.value = value;
    }
    
    
    public static String getValueByKey(String key){
        for(OrgTypeEunm versionTypeEunm:OrgTypeEunm.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }

    public static OrgTypeEunm getByKey(String key){
        for(OrgTypeEunm versionTypeEunm:OrgTypeEunm.values()){
            if(versionTypeEunm.getKey().equals(key)){
                return versionTypeEunm;
            }
        }
        return  null;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

}
